#include <iostream>
#include <unordered_map>
using namespace std;

int main() {

	unordered_map<char,int> has;
	string s1,s2;
	cin>>s1>>s2;
	bool bFlg=true;
	for(int i=0;i<static_cast<int>(s1.size());++i){
		++has[s1[i]];
	}
	for(int i=0;i<static_cast<int>(s2.size());++i){
		--has[s2[i]];
		if(has[s2[i]]<0){
			bFlg=false;
			break;
		}
	}
	cout<<(bFlg?"Yes":"No");
	
	return 0;
}
